#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QTcpServer>
#include <QTcpSocket>

namespace Ui {
class Widget;
}

class Widget : public QWidget
{
  Q_OBJECT

public:
  int ji=0;
  int b=0;
  void timerEvent(QTimerEvent *e);
explicit Widget(QWidget *parent = nullptr);
~Widget();

signals:
  void T1();
  void T2();

private slots:

private:
  int timeID;
  bool state=false;
  Ui::Widget *ui;
  QTcpServer *tcpServer;
  QTcpSocket *tcpSocket1;
  QTcpSocket *tcpSocket2;
  QTcpSocket *tcpSocket3;

  QString ip1;
  qint16 port1;
  QString ip2;
  qint16 port2;
};

#endif // WIDGET_H
